package unit3;

import java.util.Scanner;

public class JDate {
    int year, month, day;

    void inputDate() {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入日期（年 月 日）：");
        year = sc.nextInt();
        month = sc.nextInt();
        day = sc.nextInt();
    }

    void outputDate() {
        System.out.println("您输入的日期是：" + year + "年"
                + month + "月" + day + "日");
    }

    public static void main(String[] args) {
        JDate date = new JDate();
        date.inputDate();
        date.outputDate();
    }
}
